package com.yqg.manage.mapper;

import com.yqg.manage.entity.LawsAndRegulations;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yqg.manage.entity.Term;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zxf
 * @since 2025-07-26
 */
@Mapper
public interface LawsAndRegulationsMapper extends BaseMapper<LawsAndRegulations> {

    List<LawsAndRegulations> getLawsAndRegulationsList(@Param("pageNum") Integer pageNum,
                                                       @Param("pageSize") Integer pageSize,
                                                       @Param("search") String search);

    Long getLawsAndRegulationsListCount(String search);

    List<Term> getTermsByIds(@Param("ids") Set<Integer> ids);
}
